package cn.ibizlab.odoo.core.odoo_purchase.service;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import cn.ibizlab.odoo.core.odoo_purchase.domain.Purchase_order;
import cn.ibizlab.odoo.core.odoo_purchase.filter.Purchase_orderSearchContext;

/**
 * 实体[Purchase_order] 服务对象接口
 */

public interface IPurchase_orderService{
     Purchase_order get(Integer id) ;
     Purchase_order get(Purchase_order purchase_order) ;
     void updateBatch(List<Purchase_order> purchase_orders, int batchSize) ;
     void removeBatch(Collection<? extends Serializable> idList, int batchSize) ;
     boolean remove(Integer id) ;
     boolean update(Purchase_order purchase_order) ;
     boolean create(Purchase_order purchase_order) ;
     void createBatch(List<Purchase_order> purchase_orders, int batchSize) ;

    /**
     * 查询集合 默认查询
     */
    Page<Purchase_order> searchDefault(Purchase_orderSearchContext context) ;

    /**
     * 根据税科目调整查询
     */
     Page<Purchase_order> selectByOdoo_fiscal_position(Integer id) ;

    /**
     * 根据贸易条款查询
     */
     Page<Purchase_order> selectByOdoo_incoterm(Integer id) ;

    /**
     * 根据付款条款查询
     */
     Page<Purchase_order> selectByOdoo_payment_term(Integer id) ;

    /**
     * 根据公司查询
     */
     Page<Purchase_order> selectByOdoo_company(Integer id) ;

    /**
     * 根据币种查询
     */
     Page<Purchase_order> selectByOdoo_currency(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Purchase_order> selectByOdoo_dest_address(Integer id) ;

    /**
     * 根据联系人查询
     */
     Page<Purchase_order> selectByOdoo_partner(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Purchase_order> selectByOdoo_create(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Purchase_order> selectByOdoo_user(Integer id) ;

    /**
     * 根据用户查询
     */
     Page<Purchase_order> selectByOdoo_write(Integer id) ;

    /**
     * 根据拣货类型查询
     */
     Page<Purchase_order> selectByOdoo_picking_type(Integer id) ;

    /**
     * 转换ClientModel为Domain
     */
    public Purchase_order convert2Domain(cn.ibizlab.odoo.core.client.model.Ipurchase_order model ,Purchase_order domain);

    /**
     * 转换Domain为ClientModel
     */
    public cn.ibizlab.odoo.core.client.model.Ipurchase_order convert2Model(Purchase_order domain , cn.ibizlab.odoo.core.client.model.Ipurchase_order model);

}
